home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-10-11 | 1.8 KB | 70 lines | [TEXT/CWIE] |
- // CModelessStuff.h -- dialog class
-
- #pragma once
-
- #include <LGADialog.h>
-
- #include "DModelessStuffData.h"
-
- class LStream;
-
- class CControlPane;
- class LTextGroupBox;
- class LPopupButton;
- class LTextTableView;
-
-
- //----------
- class CModelessStuff : public LGADialog {
- public: // these comprise the programming interface for using the dialog
- static CModelessStuff* CreateModelessStuff (LCommander* inSuperCommander,
- CommandT inCommand,
- DModelessStuffData* inData);
- virtual void SetFromData (DModelessStuffData* inData);
- virtual DModelessStuffData* GetData ();
-
- // these functions will be obsoleted
- // retained only for backwards compatibility
- virtual Boolean GetToolsChoice();
- virtual void SetToolsChoice (Int32 inChoice);
- virtual short GetFromValuesList2PopupChoice();
- virtual void SetFromValuesList2PopupChoice (short choice);
- virtual short GetFromMenuPopupChoice();
- virtual void SetFromMenuPopupChoice (short choice);
-
-
- public: // these comprise the implementation
- enum { class_ID = 'Mod9' };
-
- CModelessStuff (LStream* inStream);
- virtual ~CModelessStuff();
-
- virtual void ListenToMessage (MessageT inMessage,
- void *ioParam);
-
- virtual Boolean ObeyCommand (CommandT inCommand,
- void *ioParam = nil);
- virtual void FindCommandStatus (CommandT inCommand,
- Boolean &outEnabled,
- Boolean &outUsesMark,
- Char16 &outMark,
- Str255 outName);
-
- protected:
- static void RegisterClass();
- virtual void FinishCreateSelf();
- virtual void DataChanged (long inDataID);
-
- protected:
- static Boolean sIsRegistered;
- CommandT mCommand;
-
- CControlPane* mToolsPalette;
- LPopupButton* mFromValuesList2Popup;
- LPopupButton* mFromMenuPopup;
- LTextTableView* mTextListTable;
-
- DModelessStuffData* mData;
-
- };
-